import request from '@/utils/request'

// 查询我的收藏  -租房列表
export function listCollectrenting(query) {
  return request({
    url: '/member/collectrenting/list',
    method: 'get',
    params: query
  })
}

// 查询我的收藏  -租房详细
export function getCollectrenting(id) {
  return request({
    url: '/member/collectrenting/' + id,
    method: 'get'
  })
}

// 新增我的收藏  -租房
export function addCollectrenting(data) {
  return request({
    url: '/member/collectrenting',
    method: 'post',
    data: data
  })
}

// 修改我的收藏  -租房
export function updateCollectrenting(data) {
  return request({
    url: '/member/collectrenting',
    method: 'put',
    data: data
  })
}

// 删除我的收藏  -租房
export function delCollectrenting(id) {
  return request({
    url: '/member/collectrenting/' + id,
    method: 'delete'
  })
}

// 导出我的收藏  -租房
export function exportCollectrenting(query) {
  return request({
    url: '/member/collectrenting/export',
    method: 'get',
    params: query
  })
}